package com.huike.service;

import com.huike.mapper.ChargeMapper;
import com.huike.pojo.Charge;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ChargeService {
    @Autowired
    private ChargeMapper chargeMapper;

    public List<Charge> getCharges(String chargeName){
         return chargeMapper.getCharges(chargeName);
    }

    public Integer updateIsDel(Integer id,Date date){
        return chargeMapper.updateIsDel(id,date);
    }

    public Charge getChargeById(Integer id){
        return chargeMapper.getChargeById(id);
    }

    public Integer updateCharge(Charge charge){
        return chargeMapper.updateCharge(charge);
    }

    public List<Charge> getChargeNoDel(){
        return chargeMapper.getChargeNoDel();
    }
}
